let mysql = require('mysql');

let pool = mysql.createPool({
  host: 'localhost',
  user: 'root',
  port: 3306,
  password: 'rootroot',
  database: 'base2001a'
});

pool.query('select * from user', (err, res) => {
  if (err) {
    console.error(err);
    return
  }
  console.log(res);
});
module.exports = pool;

